package org.will.test.domain.builder;

import org.will.test.domain.PayOutMessage;

/**
 * Created by jsycwangwei on 2017/7/9.
 */
public class XmlBuilder extends BaseBuilder<XmlBuilder,PayOutMessage>{

    private String content;
    private String code;

    public XmlBuilder code(String code){
        this.code = code;
        return this;
    }

    public XmlBuilder content(String content){
        this.content = content;
        return this;
    }

    public PayXmlOutMessage build(){
        PayXmlOutMessage payXmlOutMessage = new PayXmlOutMessage();
        setCommon(payXmlOutMessage);
        payXmlOutMessage.setContent(content);
        payXmlOutMessage.setCode(code);
        return payXmlOutMessage;
    }
}
